﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Test1
{
    class People
    {
        private string name;
        //封装快捷键 CTRL +R+E
        public string Name
        {
            get { return name; }// 读访问器
            set { name = value; }//写访问器
        }
        private int age;

        public int Age
        {
            get { return age; }
            set { age = value; }
        }
        private string sex;

        public string Sex
        {
            get { return sex; }
            set { sex = value; }
        }
        public void PlayBall()
        {
            Console.WriteLine("大家喜欢踢球");
        }
    }
}
